<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$gid = $_GPC['gid'];
		$goodsname = $_GPC['goodsname'];
		$price = $_GPC['price'];
		$up = pdo_update('mii_ang_goods',array('goodsname'=>$goodsname,'price'=>$price),array('id'=>$gid));
		if($up){	
			$code =  json_encode(array('status'=>'1','msg'=>'保存成功')); 
			exit($code);
		}else{
			$code =  json_encode(array('status'=>'2','msg'=>'保存失败')); 
			exit($code);
		}
	}else{
		$code  = json_encode(array('status'=>'2','msg'=>'没有操作权限'));
		exit($code);
	}

?>